import request from '@/utils/request'

// 查询补贴发放列表
export function listSubsidies(query) {
  return request({
    url: '/dgw/subsidies/list',
    method: 'get',
    params: query
  })
}

// 查询补贴发放详细
export function getSubsidies(id) {
  return request({
    url: '/dgw/subsidies/' + id,
    method: 'get'
  })
}

// 新增补贴发放
export function addSubsidies(data) {
  return request({
    url: '/dgw/subsidies',
    method: 'post',
    data: data
  })
}

// 修改补贴发放
export function updateSubsidies(data) {
  return request({
    url: '/dgw/subsidies',
    method: 'put',
    data: data
  })
}

// 删除补贴发放
export function delSubsidies(id) {
  return request({
    url: '/dgw/subsidies/' + id,
    method: 'delete'
  })
}

// 导出补贴发放
export function exportSubsidies(query) {
  return request({
    url: '/dgw/subsidies/export',
    method: 'get',
    params: query
  })
}